package com.bfxy.rabbit.common.serializer.impl;

import com.bfxy.rabbit.api.Message;
import com.bfxy.rabbit.common.serializer.Serializer;
import com.bfxy.rabbit.common.serializer.SerializerFactory;

/**
 * @author caryguan
 * @version V1.0
 * @Package com.bfxy.rabbit.common.serializer.impl
 * @date 2020/10/2 12:01
 */
public class JacksonSerializerFactory implements SerializerFactory {

    public static final JacksonSerializerFactory INSTANCE=new JacksonSerializerFactory();
    @Override
    public Serializer create() {
        return JacksonSerializer.createParametricType(Message.class);
    }
}